projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c8e9ee
)
csslookup: Query the bitmask
author
Benjamin Otte
<otte@redhat.com>
Sat, 14 Jan 2012 15:58:52 +0000
(16:58 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 2 Feb 2012 02:13:38 +0000
(
03:13
+0100)
Checking if the value is NULL is the wrong thing to do - the bitmask is
usd to keep track of that.
The reason for that will become apparent in the next patch.
gtk/gtkcsslookup.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcsslookup.c
b/gtk/gtkcsslookup.c
index 76bdb484d33355195957e9595569abd1c7ee0daa..fce852845ab1c7decae54fab429dc1ecb13d57e4 100644
(file)
--- a/
gtk/gtkcsslookup.c
+++ b/
gtk/gtkcsslookup.c
@@
-72,7
+72,7
@@
_gtk_css_lookup_is_missing (const GtkCssLookup *lookup,
{
g_return_val_if_fail (lookup != NULL, FALSE);
- return
lookup->values[id].value == NULL
;
+ return
_gtk_bitmask_get (lookup->missing, id)
;
}
/**